package com.dinghui.pay.constant;

/**
 * 公共常量类
 *
 * @author zifangsky
 * @date 2018/7/25
 * @since 1.0.0
 */
public class Constants {
    /**
     * 登录页面的回调地址在session中存储的变量名
     */
    public static final String SESSION_LOGIN_REDIRECT_URL = "LOGIN_REDIRECT_URL";

    /**
     * Access Token在session中存储的变量名
     */
    public static final String SESSION_ACCESS_TOKEN = "ACCESS_TOKEN";

    /**
     * 用户信息在session中存储的变量名
     */
    public static final String SESSION_USER = "SESSION_USER";

    /**
     * Access Token在session中存储的变量名
     */
    public static final String COOKIE_ACCESS_TOKEN = "ACCESS_TOKEN";

    /**
     * Refresh Token在session中存储的变量名
     */
    public static final String COOKIE_REFRESH_TOKEN = "REFRESH_TOKEN";
    /**
     * 项目ID
     */
    public static final String PROJECT_ID = "47";

    /**
     * 成功状态
     */
    public static final int SUCCESS = 1;

    /**
     * 成功状态
     */
    public static final int FAIL = 0;

    /**
     *  超级管理员，不做权限检查
     */
    public static boolean AMIDN_PERMISSION = false;

    /**
     * 创建者
     */
    public static final int CREATE = 0;

    /**
     * 购买者
     */
    public static final int BUY = 1;

    /**
     * 购买商品类型
     */
    public static final int BUY_GOODS_TYPE = 4;

    /**
     * 机构类型
     */
    public static final int ORGANIZATION_TYPE = 1;
}
